FileNameToFormatList
FileNameToFormatList[] returns lists of file formats corresponding to all registered file name patterns.
FileNameToFormatList["file"] returns a list of file formats that matches the file name "file".
Please visit the official Wolfram Language Reference for more details and examples on core symbols.